<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>日语在线考试</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>
		<table>
			<caption>
				个人资料
				<img
					src='/jpTest/style/images/userHeads/<s:property value="user.getUserIco()"/>'
					width="100" height="100"
					alt="<s:property value='user.userNickname' />" />
			</caption>
			<tr>
				<td>
					用户名：
				</td>
				<td>
					${user.userNickname}
				</td>
			</tr>
			<tr>
				<td>
					用户类型：
				</td>
				<td>
					<s:if test="%{#session.user.userType == 0}">普通用户</s:if>
					<s:if test="%{#session.user.userType == 1}">学生</s:if>
					<s:if test="%{#session.user.userType == 2}">职员</s:if>
					<s:if test="%{#session.user.userType == 3}">教师</s:if>
					<s:if test="%{#session.user.userType == 4}">管理员</s:if>
				</td>
			</tr>
			<tr>
				<td>
					等级：
				</td>
				<td>
					${user.rank.rankName}
				</td>
			</tr>
			<tr>
				<td>
					积分：
				</td>
				<td>
					${user.userScore}
				</td>
			</tr>
			<tr>
				<td>
					团体：
				</td>
				<td>
					${user.group.groupName} &nbsp;班级：${user.group.className}
				</td>
			</tr>
			<tr>
				<td>
					邮箱：
				</td>
				<td>
					${user.userEmail}
				</td>
			</tr>
			<tr>
				<td>
					性别：
				</td>
				<td>
					${user.userSex}
				</td>
			</tr>
			<tr>
				<td>
					真实姓名：
				</td>
				<td>
					${user.userName}
				</td>
			</tr>
			<tr>
				<td>
					注册日期：
				</td>
				<td>
					<s:date name="user.regTime" format="dd/MM/yyyy" />
				</td>
			</tr>
		</table>
	</body>
</html>
